package grade.model;

import org.apache.commons.lang.StringUtils;

public class Grade {
	private int id;
	private String name;
	private String descc;
	
	public Grade() {
	}

	public Grade(String name, String descc) {
		this.name = name;
		this.descc = descc;
	}

	public Grade(int id,String name, String descc) {
		this.id = id;
		this.name = name;
		this.descc = descc;
	}

	public Grade(String id,String name, String descc) {
		if(StringUtils.isEmpty(id)){
			
		}else{
			this.id = Integer.parseInt(id);
		}
		this.name = name;
		this.descc = descc;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescc() {
		return descc;
	}

	public void setDescc(String descc) {
		this.descc = descc;
	}
}
